﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.PublicAffair.Data;
using CentralOffice.PublicAffair.DataAccess;

using PostTable = CentralOffice.PublicAffair.Data.PostDataSet.PostsDataTable;
using PostRow = CentralOffice.PublicAffair.Data.PostDataSet.PostsRow;

using PostReplyTable = CentralOffice.PublicAffair.Data.PostReplyDataSet.PostReplyDataTable;
using PostReplyRow = CentralOffice.PublicAffair.Data.PostReplyDataSet.PostReplyRow;


namespace CentralOffice.PublicAffair.BusinessActions
{
    public class Post : DataAccessManager<PostDataSet, PostTable, PostRow, PostDataAdapter>
    {
        public static bool Update(PostDataSet postDataSet, PostReplyDataSet replyDataSet)
        {
            return UpdateSelfAndDetail<PostReplyDataAdapter, PostReplyDataSet, PostReplyTable, PostReplyRow>(postDataSet, replyDataSet, true, false, null);
        }
    }
}
